<template>
	<view class="call-v" @click="$u.throttle(callFun, 3000) ">
		<image class="call-image" src="@/static/nav/call/call.png" mode=""></image>
		<text class="call-t">{{$t("NavigationBar.CallAttendant")}}</text>
	</view>
</template>

<script>
	// import {
	// 	SendMessage,
	// } from '@/common/config/api.js'
	export default {
		name: "call",
		data() {
			return {

			};
		},
		methods: {
			callFun() {
				// SendMessage({
				// 	message: '呼叫服务员',
				// 	from: this.getDeName(),
				// 	to: 'admin'
				// }).then((res) => {
				// 	this.showToast('呼叫成功')
				// })
				// this.bus.$emit('SendMessage',12312)
				// addDish().then((res) => {
				// 	this.showToast('呼叫成功！')
				// })
			}
		},
	}
</script>

<style scoped lang="scss">
	.call-v {
		margin-left: 16px;
		background-color: $qy-bg-nav-option-color;
		padding: 8px 10px;
		display: flex;
		border-radius: 10px;

		.call-image {
			width: 20px;
			height: 20px;
		}

		.call-t {
			margin-left: 6px;
			color: $uni-text-color;
			font-size: 14px;
		}

	}
</style>